package exception;

import java.io.FileOutputStream;

public class AutoCloseableDemo {
    public static void main(String[] args) {
        System.out.println("12");
        try(
                FileOutputStream fos = new FileOutputStream("fos.dat");
                ){
            fos.write(1);
        }catch (Exception e){
            e.printStackTrace();
        }
        System.out.println("34");
    }
}
